// user.entity.ts
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity('t_mail')
export class Mail {
  @PrimaryGeneratedColumn()
  mail_id?: number;
  @Column()
  user_id: number;
  @Column()
  type: string;
  @Column()
  subject: string;
  @Column()
  content: string;
  @Column()
  sender: string;
  @Column()
  recipient: string;
  @Column()
  send_date: Date;
  @Column()
  @Column({ default: false })
  hidden?: boolean;
}
